package com.warm.base.jdk.anno;

import com.warm.common.anno.Age;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;


/**
 * @author warmchuang
 * @date 2023/7/13 15:35
 * @desc
 */
@Data
public class User {
    //@CourierNumber
    @NotEmpty(message = "age 不能为空")
    private String name;
    @Age
    private Integer age;
    @NotNull(message = "city 不能为空")
    private String city;
}
